// import { IpcRenderer } from 'electron'

window.electron.ipcRenderer.on('main-to-renderer', (e, data) => {
  let text = document.getElementsByClassName('text')[0]
  text.innerText = data.data ? data.msg + data.data : data.msg

  window.electron.ipcRenderer.invoke('renderer-to-main', data)
})
